﻿using System;
using SharpSqlAnalyzer.nodes;
using SharpSqlAnalyzer.nodes.sybase;

namespace SharpSqlAnalyzer.stmt.sybase
{
	// Token: 0x020000E0 RID: 224
	public class TInsertBulk : TCustomSqlStatement
	{
		// Token: 0x060007B6 RID: 1974 RVA: 0x003010C6 File Offset: 0x002FF2C6
		public TInsertBulk(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstsybaseInsertBulk;
		}

		// Token: 0x17000167 RID: 359
		// (get) Token: 0x060007B7 RID: 1975 RVA: 0x003010DA File Offset: 0x002FF2DA
		// (set) Token: 0x060007B8 RID: 1976 RVA: 0x003010E2 File Offset: 0x002FF2E2
		public virtual TObjectName TableName
		{
			get
			{
				return this.tableName;
			}
			set
			{
				this.tableName = value;
			}
		}

		// Token: 0x060007B9 RID: 1977 RVA: 0x003010EB File Offset: 0x002FF2EB
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			this.tableName = ((TInsertBulkSqlNode)this.rootNode).TableName;
			return 0;
		}

		// Token: 0x060007BA RID: 1978 RVA: 0x00301116 File Offset: 0x002FF316
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060007BB RID: 1979 RVA: 0x00301126 File Offset: 0x002FF326
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040011ED RID: 4589
		private TObjectName tableName;
	}
}
